Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.rating.widgets--widgettypes

This contribution is part of XML component org.nuxeo.ecm.rating.widgets inside nuxeo-rating-web-5.8.jar

Extension Point

Extension point widgettypes of component WebLayoutManager.

Contributed Items

  • <widgetType name="document_likes_count">
          <configuration>
            <sinceVersion>5.7.2</sinceVersion>
            <title>Likes Count</title>
            <description>
              <p>This widget displays how many people like a document.</p>
              <p>
                It requires the following fields configuration: first field maps
                the document model.
              </p>
            </description>
            <categories>
              <category>summary</category>
            </categories>
            <supportedModes>
              <mode>view</mode>
            </supportedModes>
            <!-- no configurable properties -->
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/summary/likes_count_widget_template.xhtml
          </property>
        </widgetType>

XML Source

<extension point="widgettypes" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widgetType name="document_likes_count">
      <configuration>
        <sinceVersion>5.7.2</sinceVersion>
        <title>Likes Count</title>
        <description>
          <p>This widget displays how many people like a document.</p>
          <p>
            It requires the following fields configuration: first field maps
            the document model.
          </p>
        </description>
        <categories>
          <category>summary</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <!-- no configurable properties -->
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/summary/likes_count_widget_template.xhtml
      </property>
    </widgetType>

  </extension>